<?php

/**
 * isajax
 * @package actions
 * @return bool
 */
 
function isajax() {
  if($_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest')
  {
    return true;
  }else{
    return false;
  }
} 